package service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.Providerdao;
import dao.Userdao;
import entity.Provider;
import entity.SmbUser;
@Service
public class ProviderService {
	@Resource(name = "providerDao")
	private Providerdao providerDao;
	public List<Provider> searchAll() {
		return providerDao.searchAllProviders();
	}
	public int add(Provider p){
		return providerDao.add(p);
	}
	public int modify(Provider p){
		return providerDao.modify1(p);
	}
	public int remove(String s){
		return providerDao.remove(s);
	}
}
